package cn.wicking.demo05.service.impl;

import cn.wicking.demo05.entity.User;
import cn.wicking.demo05.mapper.UserMapper;
import cn.wicking.demo05.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserById(Integer id) {
        final User user = userMapper.selectById("1");
        return user;
    }
}
